<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>Meeting会议管理系统</title>
    <link rel="stylesheet" href="/styles/common.css"/>
    <style type="text/css">

    </style>
</head>
<body>
<%@ include file="top.jsp" %>
<div class="page-body">
    <%@ include file="leftMenu.jsp" %>
    <div class="page-content">
        <div class="content-nav">
            会议预定 > 搜索员工
        </div>
        <form action="${pageContext.request.contextPath}/searchemployee" method="get">
            <fieldset>
                <legend>搜索员工</legend>
                <table class="formtable">
                    <tr>
                        <td>姓名：</td>
                        <td>
                            <input name="employeeName" type="text" id="employeename"
                                   value="" maxlength="20"/>
                        </td>
                        <td>账号名：</td>
                        <td>
                            <input name="username" type="text" id="accountname"
                                   value="" maxlength="20"/>
                        </td>
                        <td>状态：</td>
                        <td>

                            <%--                            <#if employee??>--%>
                            <%--                                <#if employee.status == 0>--%>
                            <%--                                    <input type="radio" id="status" name="status" value="1"/><label>已批准</label>--%>
                            <%--                                    <input checked="checked" type="radio" id="status" name="status" value="0"/>--%>
                            <%--                                    <label>待审批</label>--%>
                            <%--                                    <input type="radio" id="status" name="status" value="2"/><label>已关闭</label>--%>
                            <%--                                <#elseif employee.status == 1>--%>
                            <%--                                    <input checked="checked" type="radio" id="status" name="status" value="1"/>--%>
                            <%--                                    <label>已批准</label>--%>
                            <%--                                    <input type="radio" id="status" name="status" value="0"/>--%>
                            <%--                                    <label>待审批</label>--%>
                            <%--                                    <input type="radio" id="status" name="status" value="2"/><label>已关闭</label>--%>
                            <%--                                <#elseif employee.status == 2>--%>
                            <%--                                    <input type="radio" id="status" name="status" value="1"/>--%>
                            <%--                                    <label>已批准</label>--%>
                            <%--                                    <input type="radio" id="status" name="status" value="0"/>--%>
                            <%--                                    <label>待审批</label>--%>
                            <%--                                    <input checked="checked" type="radio" id="status" name="status" value="2"/>--%>
                            <%--                                    <label>已关闭</label>--%>
                            <%--                                </#if>--%>
                            <%--                            <#else >--%>
                            <%--                                <input type="radio" id="status" name="status" value="1"--%>
                            <%--                                       checked="checked"/><label>已批准</label>--%>
                            <%--                                <input type="radio" id="status" name="status" value="0"/><label>待审批</label>--%>
                            <%--                                <input type="radio" id="status" name="status" value="2"/><label>已关闭</label>--%>
                            <%--                            </#if>--%>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6" class="command">
                            <input type="submit" class="clickbutton" value="查询"/>
                            <input type="reset" class="clickbutton" value="重置"/>
                        </td>
                    </tr>
                </table>
            </fieldset>
        </form>
    <div style="margin-bottom: 10px;"></div>
    <table class="listtable">
        <tr class="listheader">
            <th>姓名</th>
            <th>账号名</th>
            <th>联系电话</th>
            <th>电子邮件</th>
            <th>操作</th>
        </tr>
        <c:forEach items="${employees}" var="employee">
            <tr>
                <td>${employee.employeeName}</td>
                <td>${employee. username}</td>
                <td>${employee.phone}</td>
                <td>${employee.email}</td>
                <td><a class="clickbutton">编辑</a></td>
            </tr>
        </c:forEach>
        <%--            <#if emps??>--%>
        <%--                <#list emps as emp>--%>
        <%--                    <tr>--%>
        <%--                        <td>${emp.employeeName}</td>--%>
        <%--                        <td>${emp.username}</td>--%>
        <%--                        <td>${emp.phone}</td>--%>
        <%--                        <td>${emp.email}</td>--%>
        <%--                        <td>--%>
        <%--                            <a class="clickbutton" href="/admin/updateemp?id=${emp.employeeId}">关闭账号</a>--%>
        <%--                        </td>--%>
        <%--                    </tr>--%>
        <%--                </#list>--%>
        <%--            </#if>--%>
    </table>
    </div>
</div>

</div>
</div>
<%@include file="down.jsp" %>
</body>
</html>